import * as keyService from '../services/keys.service'
import * as Router from 'koa-router'

const router = new Router({
  prefix: '/api/keys'
})

router.post('/home/hotKeys', async ctx => {
  const result = await keyService.list()
  ctx.body = {
    stat: 'OK',
    result
  }
})

export default router
